package vcsn.entities;

public class RefineParameterOperation extends ConflictOperation {

	private String[] refinedArgumentList;
	private int argumentListLength;
	
	public String[] getRefinedArgumentList(){return refinedArgumentList;}
	public int getArgumentListLength(){return argumentListLength;}
	
	public void setRefinedArgumentList(String[] value){refinedArgumentList = value;}
	public void setArgumentListLength(int value){argumentListLength = value;}
	
	@Override
	public StringBuilder change(StringBuilder outputBuffer) {
		// TODO Auto-generated method stub
		String argumentString = "(";
		if(refinedArgumentList != null){
			for(int i = 0; i < refinedArgumentList.length; i++){
				argumentString += refinedArgumentList[i];
				if(i + 1 < refinedArgumentList.length){
					argumentString += ", ";
				}
			}
		}
		argumentString += ")";
		outputBuffer.append(argumentString.trim());
		return outputBuffer;
	}

}
